//package com.mezz.bones.framework.web.handler.req;
//
//import cn.hutool.core.util.StrUtil;
//
//import com.mezz.bones.framework.web.domain.RequestLog;
//import com.mezz.bones.framework.web.handler.log.AbstractRequestLogStoreHandler;
//import lombok.extern.slf4j.Slf4j;
//import org.springframework.stereotype.Component;
//
///**
// * @author mezz
// * @date 2022-12-12 17:16
// * @description: skywalking 记录api请求日志
// */
//@Component
//@Slf4j
//public class SwRequestLogStoreHandler extends AbstractRequestLogStoreHandler {
//
//  @Override
//  public void saveLog(RequestLog requestLog) {
//
//    log.info("http request params: {}", JSONOBJECT.toJSONString(requestLog.getReqInput()));
//    //trace 展示用
//    ActiveSpan.tag("input",StrUtil.sub(requestLog.getReqInput(),0,1000));
//    ActiveSpan.tag("output",StrUtil.sub(requestLog.getReqOutPut(),0,1000));
//    ActiveSpan.tag("version",requestLog.getVersion());
//    ActiveSpan.tag("device",requestLog.getDevice());
//    ActiveSpan.tag("loginId", requestLog.getLoginId());
//    ActiveSpan.tag("ip", requestLog.getIp());
//    ActiveSpan.tag("region",requestLog.getRegion());
//
//  }
//}
